/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package job.manager.client.wb.ext;

/**
 *
 * @author Administrator
 */
public class EmailValidationWebService {

    public static boolean ValidateEmail(String email) {
        try {
            com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.messages.ValidateEmailRequest messagePart = new com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.messages.ValidateEmailRequest();
            messagePart.setEmail(email);
            com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.EmailValidation service = new com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.EmailValidation();
            
            com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.XWebEmailValidationInterface port = service.getEmailValidation();
            // TODO process result here
            com.xwebservices.ws.xwebemailvalidation.emailvalidation.v2.messages.ValidateEmailResponse result = port.validateEmail(messagePart);
            System.out.println("Result = " + result);
            return true;
        } catch (Exception ex) {
            ex.printStackTrace();
        }
        return false;
    }
}
